|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabstraction.OnlyReadIterator<T>
public class OnlyReadIterator<T>
This class manages a only read Iterator where remove operation is forbidden
| Field Summary | |
|---|---|
private java.util.Iterator<T> |
i
|
| Constructor Summary | |
|---|---|
OnlyReadIterator(java.util.Iterator<T> it)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Iterator<T> i
| Constructor Detail |
|---|
public OnlyReadIterator(java.util.Iterator<T> it)
| Method Detail |
|---|
public T next()
next in interface java.util.Iterator<T>public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||